<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link href="../css/jquery/jquery-ui-1.8.6/css/smoothness/jquery-ui-1.8.6.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../js/jquery/jquery.blockUI.js"></script>
<script type="text/javascript" src="../js/jquery/jquery-ui-1.8.6/js/jquery-ui-1.8.6.custom.min.js"></script>
<script src="../js/jquery/jquery.alerts.js" type="text/javascript"></script>
<link href="../css/jquery/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />

<script>
    
</script>    

<script type="text/javascript"> 
$(document).ready(function(){
   <? if ($msgAlert){?>
        jAlert("<? echo $msgAlert?>", "Aviso");
   <? }?>
   $("#datepicker").datepicker();
});
</script>

<body>

<div id="main">
    <div id="header">

		<h2>&nbsp;</h2>
		<div id="menuHeader">
		</div>
	</div>
    <div id="zonaIzq">
		<div id="menuIzq">
			<h3>:: Menu contextual </h3>
		</div>

	</div>
    <div id="zonaContenedor">

<div id="module">
	<h3>:: Movimimiento de inventario</h3>
    <div>
     <form action="index.php?do=Stock&accion=registrarMovim" method="post">
	<table width="100%">
		<tr>
		  <td id="keyLabel">Movimiento Nro</td>

		  <td>&nbsp;</td>
		  <td id="label">Status</td>
		  <td>&nbsp;</td>
	    </tr>
		<tr>
		  <td id="label">Tipo</td>
		  <td><select name="select3" id="select">
		    <option>Ingreso compra</option>

		    <option>Ingreso devolucion</option>
		    <option>Ingreso transferencia</option>
		    <option>Salida venta</option>
		    <option>Salida transferencia</option>
	      </select></td>
		  <td id="label">Fecha Movimiento</td>

		  <td><input type="text" name="datepicker" id="datepicker" readonly="readonly" size="12" /></td>
	    </tr> 
		<tr>
		  <td id="label"> Documento</td>
		  <td><select name="select4" id="select2">
		    <option>Factura proveedor</option>
		    <option>Guia proveedor</option>

		    <option>Orden despacho</option>
		    <option>Otros</option>
	      </select>		    
	      <input name="s" type="text" size="15"/></td>
		  <td id="label">&nbsp;</td>
		  <td>&nbsp;</td>
	    </tr>                 
		<tr>

		  <td id="label">Observaciones</td>
		  <td>
          	<textarea name="" cols="40" rows="2"></textarea>          </td>
		  <td id="label"></td>
		  <td>          </td>
	    </tr>        
		<tr>

			<td colspan="4">
				<input type="submit" value="Guardar" name="aceptar2"/>			</td>		                             
	    </tr>        				
		<tr>
		  <td colspan="4">&nbsp;</td>
	    </tr>        
     </table>
     </form>
  </div>
     <div>
     	<table cellspacing="1" cellpadding="4">

        	<tr>
            	<td id="tabFormula" bgcolor="#CCCCCC" onclick="showGrid('gridFormula')"><a>Detalle</a></td>
            	<td id="tabFase" bgcolor="#EBEBEB" onclick="showGrid('gridFase')">Condiciones de venta  </td>                
            </tr>
     	</table>        
     </div>     
     <div id="gridFormula">
     <table width="100%">
		<tr>

			<td colspan="4">
				<table width="100%" cellspacing="1">
					<tr bgcolor="#CCCCCC" >
						<td>Item</td>
						<td>Codigo</td>
						<td>Descripcion</td>
						<td>UM</td>

						<td>Cantidad</td>
						<td>Costo</td>
						<td>Subtotal</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>1</td>
						<td>

							<input name="" type="text" id="input" maxlength="8"/>
							<input type="button" value="buscar" onclick="openpopup()">						</td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
					</tr>						
					<tr bgcolor="#FFFFFF">

						<td>2</td>
						<td>C45234</td>
						<td>Harina especial</td>
						<td>Kg</td>
						<td>20</td>
						<td><div align="right">300</div></td>

						<td><div align="right">300</div></td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>3</td>
						<td>C45234</td>
						<td>Carne de cerdo</td>
						<td>Kg</td>

						<td>50</td>
						<td><div align="right">300</div></td>
						<td><div align="right">300</div></td>
					</tr>					
					<tr bgcolor="#FFFFFF">
						<td>4</td>
						<td>CJS45234</td>

						<td>Empaque por doc</td>
						<td>Und</td>
						<td>1O</td>
						<td><div align="right">15</div></td>
						<td><div align="right">15</div></td>
					</tr>

					<tr bgcolor="#FFFFFF">
					  <td>5</td>
					  <td>C45234</td>
					  <td>Harina especial</td>
					  <td>Kg</td>
					  <td>20</td>

					  <td><div align="right">300</div></td>
					  <td><div align="right">300</div></td>
				  </tr>
					<tr bgcolor="#FFFFFF">
					  <td colspan="3" bgcolor="#FFFFFF"><div align="right"></div></td>
					  <td colspan="3" bgcolor="#CCCCCC"><div align="right">Total</div></td>
					  <td bgcolor="#CCCCCC"><div align="right">1230.00</div></td>

				  </tr>
					<tr bgcolor="#FFFFFF">
					  <td colspan="3" bgcolor="#FFFFFF"><div align="right"></div></td>
					  <td colspan="3" bgcolor="#CCCCCC"><div align="right">Descuentos</div></td>
					  <td bgcolor="#CCCCCC"><div align="right">0.00</div></td>
				  </tr>
					<tr bgcolor="#FFFFFF">
					  <td colspan="3" bgcolor="#FFFFFF"><div align="right"></div></td>

					  <td colspan="3" bgcolor="#CCCCCC"><div align="right">Impuestos</div></td>
					  <td bgcolor="#CCCCCC"><div align="right">24.00</div></td>
				  </tr>
					<tr bgcolor="#FFFFFF">
					  <td colspan="3" bgcolor="#FFFFFF"><div align="right"></div></td>
					  <td colspan="3" bgcolor="#CCCCCC"><div align="right"><strong>Neto</strong></div></td>
					  <td bgcolor="#CCCCCC"><div align="right"><strong>1254.00</strong></div></td>

				  </tr>																		
				</table>
			</td>
		</tr>
	</table>	
	<table width="100%">
		<tr>
			<td align="right"><input type="button" value="Generar movimiento" name="aceptar2"/>			</td>				
		</tr>	
	</table>

    <br>&nbsp;
</div>

     <div id="gridFase" style="top:237px">
	<table width=100%>
		<tr>
		  <td id="label">Direcc Factura</td>
		  <td><input name="Input3" type="text" size="30"/></td>
		  <td id="label"></td>

		  <td></td>
	    </tr>
		<tr>
		  <td id="label">&nbsp;</td>
		  <td><input name="Input4" type="text" size="30"/></td>
		  <td id="label">&nbsp;</td>		  
		  <td></td>
		  <td>&nbsp;</td>
		</tr>	
		<tr>

		  <td id="label">Ciudad</td>
		  <td>
          	<input name="" type="text" size=10/></td>
		  <td id="label"></td>
		  <td></td>
	    </tr> 
		<tr>
		  <td id="label">Pais</td>

		  <td>
          	<input name="" type="text" size=10/> </td>
		  <td id="label"></td>
		  <td></td>
	    </tr> 		
		<tr>
		  <td id="label"> Forma de pago</td>
		  <td><input name="" type="text" size=10/></td>

		  <td id="label"></td>
		  <td></td>
	    </tr>                                
		<tr>
			<td colspan="4">
				<input type="button" value="Guardar" name="aceptar2"/>			</td>		                             
	    </tr>        				
		<tr>
		  <td colspan="4">&nbsp;</td>
	    </tr>        
     </table>	
    <br>&nbsp;

	</div>


		
	</div>
    <div id="footer"></div>
</div> 


<div id=popup>
	<h3>:: Lista de articulos </h3>
	<table width=100%>
		<tr>

			<td>
				Articulo 
				<input name="" type="text" size=10/>
				<input name="" type="text" size=30/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				Descripcion
				<input name="" type="text" size=5/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				Tipo
				<select name="">

					<option>Insumo
					<option>Insumo intermedio
				</select>
				<input name="" type="button" value="buscar" name="buscar"/>
			</td>
		</tr>
		<tr>
			<td>
				<table width="100%" cellspacing="1">
					<tr bgcolor="#FFFFCC">

						<td>Tipo</td>
						<td>Codigo</td>
						<td>Descripcion</td>
						<td>Familia</td>
						<td>Marca</td>
						<td>Stock</td>

					</tr>
					<tr bgcolor="#FFFFFF" onclick="aqui()">
						<td>Insumo</td>
						<td>C45234AQU1</td>
						<td>Harina especial</td>
						<td>Harinas</td>
						<td>xxxx</td>

						<td>1</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>
						<td>Carne de cerdo</td>
						<td>Carnes</td>

						<td></td>
						<td>10</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>
						<td>Carne de cerdo</td>

						<td>Carnes</td>
						<td></td>
						<td>5</td>
					</tr>	
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>

						<td>Carne de cerdo</td>
						<td>Carnes</td>
						<td></td>
						<td>1</td>
					</tr>																	
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>

						<td>C45234</td>
						<td>Carne de cerdo</td>
						<td>Carnes</td>
						<td></td>
						<td>1</td>
					</tr>					
					<tr bgcolor="#FFFFFF">

						<td>Material</td>
						<td>CJS45234</td>
						<td>Empaque por doc</td>
						<td>Accesorios</td>
						<td>s/m</td>
						<td>1</td>

					</tr>		
					<tr bgcolor="#FFFFFF">
						<td>Tipo</td>
						<td>Codigo</td>
						<td>Descripcion</td>
						<td>Familia</td>
						<td>Marca</td>

						<td>4</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>
						<td>Harina especial</td>
						<td>Harinas</td>

						<td>xxxx</td>
						<td>1</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>
						<td>Carne de cerdo</td>

						<td>Carnes</td>
						<td></td>
						<td>1</td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>
						<td>C45234</td>

						<td>Carne de cerdo</td>
						<td>Carnes</td>
						<td></td>
						<td>1</td>
					</tr>	
					<tr bgcolor="#FFFFFF">
						<td>Insumo</td>

						<td>C45234</td>
						<td>Carne de cerdo</td>
						<td>Carnes</td>
						<td></td>
						<td>1</td>
					</tr>																	
					<tr bgcolor="#FFFFFF">

						<td>Insumo</td>
						<td>C45234</td>
						<td>Carne de cerdo</td>
						<td>Carnes</td>
						<td></td>
						<td>1</td>

					</tr>					
																							
				</table>
			</td>
		</tr>
	</table>		
</div>

</body>
</html>
